<template>
	<div class="swiper-container">
	    <div class="swiper-wrapper">
	        <div class="swiper-slide"><img src="../../../static/images/flower4.jpg"></div>
	        <div class="swiper-slide"><img src="../../../static/images/flower2.jpg"></div>
	        <div class="swiper-slide"><img src="../../../static/images/flower3.jpg"></div>
	    </div>
	    <div class="swiper-pagination"></div>
	</div>
</template>
<style type="text/css" lang="less" scoped>
.swiper-container{
	margin-top: 50px;
	.swiper-slide{
		height: 60vw;
		width: 100%;
			img{
			height: 60vw;
			width: 100%;
		}
	}
	.swiper-pagination-bullet-active-main{
		background: #B2DFEE !important;
	}	
}
</style>

<script type="text/javascript">
	import Swiper from 'swiper';
    import 'swiper/dist/css/swiper.min.css';
	
	export default{
		data(){
			return{

			}
		},
		components:{

		},
		methods:{

		},
		mounted(){
			var swiper = new Swiper('.swiper-container', {
                paginationClickable: true,
      			centeredSlides: true,
                loop: true,
                speed: 600,
                autoplay: {
                	//自动播放
                	delay: 2500,
        			disableOnInteraction: false,
                },
                onTouchEnd: function() {
                    swiper.startAutoplay()
                },
                pagination: {
			      el: '.swiper-pagination',
			      dynamicBullets: true,
			    }
            });
		}
	}
</script>